package com.clock.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ContentUserLikeMapper {

    /**
     * 更新点赞的状态
     * @param likeTargetId
     * @param uId
     * @param status
     * @return
     */
    Integer updateContentIsLike(@Param("likeTargetId") Long likeTargetId, @Param("uId") Long uId , @Param("status") Integer status);

    /**
     * 新增用户的帖子点赞
     * @param likeTargetId
     * @param uId
     * @return
     */
    Integer insertPostLike(@Param("likeTargetId") Long likeTargetId, @Param("uId") Long uId );
}
